<?php
header("content-type:text/html; charset=utf-8");
include 'conn.php';
$username=$_GET['username'];
$password=$_GET['password'];

if (trim($username)=="guest" && trim($password)=="guest"){
	updateloginnum();
	echo "<script>window.location.href='admin.php';</script>";
}else{
	echo "<script>alert('请直接点击登录');window.location.href='index.html';</script>";
}
?>